import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:top_foundation/component/component.dart';
import 'package:whale/helper/utils/color.dart';

import 'logic.dart';

class HelpPage extends StatelessWidget {
  final logic = Get.put(HelpLogic());
  final state = Get.find<HelpLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: detailAppBar(
        context,
        title: '意见反馈'
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            margin: EdgeInsets.all( 15.r),
            child: BrnInputText(
              maxHeight: 200.r,
              minHeight: 200.r,
              minLines: 1,
              maxLength: 100,
              borderRadius: 4,
              borderColor: const Color(0xffe1e1e1),
              bgColor: Color(0xfff6f6f6),
              textInputAction: TextInputAction.newline,
              maxHintLines: 20,
              hint: '请输入反馈内容',
              padding: EdgeInsets.fromLTRB(15.r, 10, 20, 15.r),
              onTextChange: (text) {
                print(text);

              },
              onSubmit: (text) {
                print(text);
              },
            ),
          ),
          SizedBox(height: 30.r,),
          GestureDetector(
            child: Container(
              child: Center(child: Text('提交反馈',style: TextStyle(color: Colors.white,fontSize: 15.sp),),),
              decoration: BoxDecoration(
                  color: ColorsUtil.theme,
                  borderRadius: BorderRadius.circular(30.r)
              ),
              // padding: EdgeInsets.fromLTRB(10.w, 0, 10.w, 0),
              height: 40.h,
              margin: EdgeInsets.all(15.r),
            ),
            onTap: (){

            },
          )
        ],
      ),
    );
  }
}
